<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<!-- v-on:click   =  @click -->
			<input type="button" value="v-on" @click="doit">
			<h2 v-text="id" @click="changeId()"></h2>
		</div>
		<script>
			var app = new Vue({
				el:"#app",
				data:{
					id:"飞总"
				},
				methods:{
					doit:function(){
						alert(111)
					},
					changeId:function(){
						this.id += "牛逼！"
					}
				}
			})
		</script>
	</body>
</html>
